Alert Default Text Constants
NEW WITH THE APPEARANCE MANAGER
You can use these constants in thedefaultText
,cancelText
, andotherText
fields of the standard alert structure to specify the default text for the OK, Cancel, and Don't Save buttons.
enum { kAlertDefaultOKText = -1, kAlertDefaultCancelText = -1, kAlertDefaultOtherText = -1 };Constant descriptions
kAlertDefaultOKText
- The default text for the default (right) button is "OK" on an English system. The text will vary depending upon the localization of the user's system. Use this constant in the
defaultText
field of the standard alert structure.kAlertDefaultCancelText
- The default text for the Cancel (middle) button is "Cancel" on an English system. The text will vary depending upon the localization of your system. Use this constant in the
cancelText
field of the standard alert structure.kAlertDefaultOtherText
- The default text for the third (leftmost) button is "Don't Save" for an English system. The text will vary depending upon the localization of the user's system. Use this constant in the
otherText
field of the standard alert structure.